<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="xwcms" uri="/WEB-INF/CMSConfig/com.xwtech.cms.tld"%>

<body>

	<%
		com.xwtech.framework.login.pub.AbstractLoginToken loginToken = (com.xwtech.framework.login.pub.AbstractLoginToken) com.xwtech.framework.pub.utils.SessionUtils
			.getObjectAttribute(
					session,
					com.xwtech.framework.pub.web.SessionNameConstants.LOGIN_TOKEN);
			String loginName = loginToken.getFrameLogin().getLoginName();
			
			if (com.xwtech.cring.admin.pub.AdminUserBizConst.SUPER_ADMIN_LOGIN_NAME
			.equals(loginName)) {
	%>
	<xwcms:xtree menuName="submenu_name" parentId="menu_id"
		queryPath="/admin/AdminUserMenu_tree_superadmin.xml" menuId="submenu_id"
		menuURL="menu_url" />
	<%
		} else {
	%>
	<xwcms:xtree menuName="submenu_name" parentId="menu_id"
		queryPath="/admin/AdminUserMenu_tree.xml" menuId="submenu_id"
		menuURL="menu_url" />
	<%
		}
	%>
</body>
<script>
	function doAction(url) {
		 parent.rightFrame.location.href = url; 
	}
</script>